import type { Ref, InjectionKey } from 'vue'
export type NameType = string | number
export interface CollapseItemProps {
  name: string | number
  title?: string
  disabled?: boolean
}
export interface CollapseContext {
  activeNames: Ref<NameType[]>
  handleItemClick: (name: NameType) => void
}
export const CollapseContextKey: InjectionKey<CollapseContext> =
  Symbol('collapseContextKey')
export interface CollapseProps {
  accordion?: boolean
}
